package com.hyjx.framework.component.log;

import com.hyjx.framework.orm.IBaseModel;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 数据表 业务日志表对象
 */
@SuppressWarnings("serial")
public class LogBusinessModel implements Serializable, IBaseModel {
    private String log_id;//日志ID
    private Date oper_time;//操作时间
    private String oper_id;//操作人ID
    private String oper_name;//操作人名称
    private String host_name;//操作机器名
    private String ip_address;//IP地址
    private String module_code;//模块代码
    private String module_name;//模块名称
    private String func_code;//功能代码
    private String func_name;//功能名称
    private String oper_desc;//操作描述
    private String exec_time;

    public void setLog_id(String log_id) {
        this.log_id = log_id;
    }

    public String getLog_id() {
        return this.log_id;
    }

    public void setOper_time(Date oper_time) {
        this.oper_time = oper_time;
    }

    public String getOper_time() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(oper_time);
    }

    public void setOper_id(String oper_id) {
        this.oper_id = oper_id;
    }

    public String getOper_id() {
        return this.oper_id;
    }

    public void setOper_name(String oper_name) {
        this.oper_name = oper_name;
    }

    public String getOper_name() {
        return this.oper_name;
    }

    public void setHost_name(String host_name) {
        this.host_name = host_name;
    }

    public String getHost_name() {
        return this.host_name;
    }

    public void setIp_address(String ip_address) {
        this.ip_address = ip_address;
    }

    public String getIp_address() {
        return this.ip_address;
    }

    public void setModule_code(String module_code) {
        this.module_code = module_code;
    }

    public String getModule_code() {
        return this.module_code;
    }

    public void setModule_name(String module_name) {
        this.module_name = module_name;
    }

    public String getModule_name() {
        return this.module_name;
    }

    public void setFunc_code(String func_code) {
        this.func_code = func_code;
    }

    public String getFunc_code() {
        return this.func_code;
    }

    public void setFunc_name(String func_name) {
        this.func_name = func_name;
    }

    public String getFunc_name() {
        return this.func_name;
    }

    public void setOper_desc(String oper_desc) {
        this.oper_desc = oper_desc;
    }

    public String getOper_desc() {
        return this.oper_desc;
    }

    public String getExec_time() {
        return exec_time;
    }

    public void setExec_time(String exec_time) {
        this.exec_time = exec_time;
    }
    
    @Override
    public String getModuleName() {
        return "com.hyjx.framework.component.log";
    }
}